package be.bonamis.umpire.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import be.bonamis.umpire.domain.UmpireLeagueDay;

public interface UmpireLeagueDayRepository extends JpaRepository<UmpireLeagueDay, Integer> {
	List<UmpireLeagueDay> findByUmpireId(final long umpireId);

	List<UmpireLeagueDay> findByDayId(final long dayId);
	
	List<UmpireLeagueDay> findByUmpireIdAndDayId(final long umpireId, final long dayId);

	List<UmpireLeagueDay> findByUmpireIdAndDayMonthAndDayYear(final long umpireId,
			final int dayMonth, final int dayYear);
}
